package com.oa.api;

import com.oa.fallback.CardReplacementFallBack;
import com.oa.po.Leave;
import com.oa.po.Tbl_card_replacement;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

//,com.oa.oaspccommon.fallback = CardReplacementFallBack.class
@FeignClient(value = "examination-service",fallback = CardReplacementFallBack.class)
public interface CardReplacementSreviceApi {
    @RequestMapping(value = "/card",method = RequestMethod.POST)
    int addCard(Tbl_card_replacement tbl_card_replacement);
    @RequestMapping(value = "/listcard",method = RequestMethod.POST)
    public List<Tbl_card_replacement> list_card(@RequestBody Map map);
}
